package com.foxire.extends_constructor;

public class Test {
    // 目标：认识子类构造器的特点
    public static void main(String[] args) {
        // 创建子类对象
        Zi z = new Zi();

        System.out.println("--------------------------------");

        // 创建父类对象
        Fu f = new Fu();
    }
}

class Fu {
    public Fu() {
        System.out.println("父类无参构造器");
    }
}

class Zi extends Fu {
    public Zi() {
        System.out.println("子类无参构造器");
    }
}
